﻿using System;
using System.Windows.Forms;

namespace ADEVSO.Windows.Forms
{
    public class XTreeView : TreeView
    {
        public XTreeView()
            : base()
        {
            NodeMouseClick += new TreeNodeMouseClickEventHandler(XTreeView_OnNodeMouseClick);
        }

        private void XTreeView_OnNodeMouseClick(Object sender, TreeNodeMouseClickEventArgs e)
        {
            SelectedNode = e.Node;
        }
    }
}
